package net.cloudcodex.client.notification.presenter;

import com.google.gwt.cell.client.AbstractCell;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
import com.google.gwt.user.cellview.client.CellList;
import com.google.gwt.user.client.ui.Composite;

public class NotificationListPanel extends Composite {

	public NotificationListPanel() {
		initComponents();
	}
	private void initComponents() {
		
		final CellList<NotificationLinePanel> cellList = new CellList<NotificationLinePanel>(new AbstractCell<NotificationLinePanel>(){
			@Override
			public void render(Context context, NotificationLinePanel value, SafeHtmlBuilder sb) {
				
				
				
				System.out.println("render");
			      sb.appendHtmlConstant("<table>");
			      sb.appendHtmlConstant("<tr><td rowspan='3'>");
			      sb.appendHtmlConstant("cell 1");
			      sb.appendHtmlConstant("</td>");
			      sb.appendHtmlConstant("<td style='font-size:95%;'>");
			      sb.appendEscaped("cell 2");
			      sb.appendHtmlConstant("</td></tr></table>");
			}
		});
		initWidget(cellList);
	}
	
}
